package com.example.myenglishbook.database;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class Words {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name="words_id")
    private int id;
    @ColumnInfo(name="words_name")
    private String word;
    @ColumnInfo(name="words_meaning")
    private String meaning;
    @ColumnInfo(name="words_status")
    private int status=1;

    public Words(String word,String meaning) {
        this.word = word;
        this.meaning=meaning;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getMeaning() {
        return meaning;
    }

    public void setMeaning(String meaning) {
        this.meaning = meaning;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
